package com.webonn.frame.core;

import java.security.Principal;

public class OAuthPrincipal implements Principal {

    private String userId;
    private String token;

    public OAuthPrincipal(String userId,  String token) {
        this.token = token;
        this.userId = userId;
    }

    public String getName() {
        return userId;
    }

    public String getToken() {
        return token;
    }
}
